php forum
php mysql forum
php mysql smarty
 
Page 2 of 2 < 1 2
Topic Options
#230025 - 01/28/03 11:25 AM Re: Integrating Custom Title hack with BDay Hack [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
That's good news! <br /><br />Doah.... should have put that little bit of code in so that a few cents of each donation shuttles off to my paypal. LOL <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />Really.... that's good new. Yeah, donating members like the "perks" that you can give, specific to them. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#230026 - 06/19/03 08:37 AM Re: Integrating Custom Title hack with BDay Hack [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hey Josh.. sorry to bring up an old thread, but I was trying to get this to work for 6.3. <br /><br />And, it does... well, 99% of it does. The only problem is with users who do not have the ability to set custom title.. they can't edit their profiles anymore because they get the "Title is too long or empty" message<br /><br /><img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />Not sure what in 6.3 would have changed to cause this.. but if you could take a look at it, that would be great <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#230027 - 06/19/03 09:39 AM Re: Integrating Custom Title hack with BDay Hack [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
For them - you'll need to include the title on the form as a hidden field so it's not empty and doesn't get reset to blank. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />If that's not enough direction, let me konw and I'll try to look at it specifically this evening. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#230028 - 06/19/03 11:19 AM Re: Integrating Custom Title hack with BDay Hack [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hmm.. while I think I know how to add the field.. I have no idea how to make threads check the group to determine whether or not to make the field visible or hidden. That is a bit beyond me <img src="/forum/images/graemlins/crazy.gif" alt="" />

Top
#230029 - 06/19/03 08:01 PM Re: Integrating Custom Title hack with BDay Hack [Re: palmen]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hmm.. I just got a PM from one of my users, and they "hacked" their title and they were not supposed to be. He said he was viewing the source, found a hidden textbox for the title... and he said he was able to go in and set a title <img src="/forum/images/graemlins/confused.gif" alt="" /> <br /><br />I looked, and he really did <img src="/forum/images/graemlins/blush.gif" alt="" />

Top
#230030 - 06/19/03 09:03 PM Re: Integrating Custom Title hack with BDay Hack [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
This mod might be a little out of date.<br /><br />If you are using the get_input function from post - then you shouldnt' be able to - <br /><br />If there's no get input function and register globals is off (i think?) then you could easily add "title=whatever" to the url to changebasic.php<br /><br />Check changebasic.php and make sure the get_input function is there.<br /><br />This mod is probably due for a total rewite - it's been updated but probably isn't making best use of the functions.<br /><br />I'll put this on my list of stuff to update - I'll need it eventually if I ever get around to upgrading measurection.<br /><br />I've actually done it on 6.3 and am using it now at leoville. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#230031 - 06/20/03 09:56 AM Re: Integrating Custom Title hack with BDay Hack [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hmm.. ok, there was no get_input for the title variable.. so I went ahead and added a line to do this with the rest of the get inputs. Unfortunately, that did not work. <br /> <br />Also, what I have noticed, is for the people who are able to change their titles, you can change it fine. But when you go back to your profile, the title box is blank, even though you do have a custom title. <br /> <br />I don't remember if this is how it worked in the past, but so far that and the inability for people to not change their profile w/o a custom title are the only two issues I see at this time <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />For now, I have just commented out this section: <br /> <br />
Code:
// -------------------------------------------------- <br />// If title is greater than 100 or blank then we can't proceed <br />   if (( strlen($Title) &gt; 100 ) || (!$Title)) { <br />      $html -&gt; not_right($ubbt_lang['TITLE_TOO_LONG'],$Cat); <br />   } <br />
<br /> <br />And it at least allows users who can't set a title to update their profile, but the too long and blank checks are gone. So that is a temporary solution anyway <img src="/forum/images/graemlins/smile.gif" alt="" />


Edited by Jeremy (06/20/03 10:00 AM)

Top
#230032 - 06/20/03 12:14 PM Re: Integrating Custom Title hack with BDay Hack [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
For people without the ability to change the title - there should be the <input type="hidden" <br />for the title. I just checked these instructions and I see it in there.<br /><br />Does your changebasic.php have this in it?<br />
Code:
<br />	else {<br />	 $CustomTitle = "&lt;input type =\"hidden\" name = \"Title\" value = \"$UserTitle\" /&gt;";<br />	}<br />
<br />That should pass the title from one script to another if they aren't allowed to change it.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#230033 - 06/20/03 12:53 PM Re: Integrating Custom Title hack with BDay Hack [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
That line is not in changebasic... but it is in editbasic, as per the instructions. And it does work correctly, as I created a test user who doesn't have title changing access, and the title field does not display, and is hidden. But even since it was hidden, it was still showing up as blank.<br /><br />I think this has to do with why all title boxes are blank. Like I mentioned, I can set my own custom title, and it displays on the forum right. But as soon as I go back to edit my profile, the Title formbox is blank.. so it looks like the script isn't picking up the existing title and entering it into the box <img src="/forum/images/graemlins/confused.gif" alt="" />

Top
#230034 - 06/22/03 08:26 PM Re: Integrating Custom Title hack with BDay Hack [Re: palmen]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hey Josh, I fixed the hack somehow (Not sure how since I'm a complete idiot when it comes to messing with code) <img src="/forum/images/graemlins/laugh.gif" alt="" /><br /><br />But anyway, there was a variable change I believe in 6.3.. from $UserTitle to just $Title. Also, in the editbasic script, it looked like the query was not pulling the title information, so by simply adding that to the query, and changing the $UserTitle to $Title, it seems to be working. <br /><br />The titles now display in the textbox, only the proper users are allowed to edit their title, and users don't get the "too long or blank" message anymore <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />So updating your instructions shouldn't be too hard at all

Top
#230035 - 06/22/03 08:29 PM Re: Integrating Custom Title hack with BDay Hack [Re: palmen]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Great Thanks. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#230036 - 07/07/03 08:36 AM Re: Integrating Custom Title hack with BDay Hack [Re: palmen]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
I am going to attempt this on 6.3 - if I manage to get it to work, I will note down what I do.<br /><br />(unless Josh beats me to it <img src="/forum/images/graemlins/tongue.gif" alt="" /> )
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#230037 - 07/07/03 10:10 AM Re: Integrating Custom Title hack with BDay Hack [Re: Gorlum]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
I should have wrote down the steps I did to fix it.. but that would have meant I did something constructive <img src="/forum/images/graemlins/laugh.gif" alt="" />

Top
#230038 - 07/07/03 11:32 AM Re: Integrating Custom Title hack with BDay Hack [Re: palmen]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
In that case, I will write down what I do to break it, and you can then suggest how I fix it <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
Page 2 of 2 < 1 2



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks